package cn.tool.dao.excel.read;


import cn.tool.dao.pojo.excelpojo.ExcelOrg;
import cn.tool.dao.pojo.excelpojo.ExcelUser;
import cn.tool.utils.EasyExcelUtils;

import java.util.List;

public class FujinRead {
    private static final String userPath = "src/main/resources/file/fujinExecl/富锦用户表.xlsx";
    private static final String orgPath = "src/main/resources/file/fujinExecl/经济组织参考表.xlsx";


    public static List<ExcelUser> getExcelUserList() {
        List<ExcelUser> list = EasyExcelUtils.syncReadModel(userPath, ExcelUser.class, 0, 3);
        return list;
    }

    public static List<ExcelOrg> getExcelOrgList() {
        List<ExcelOrg> list = EasyExcelUtils.syncReadModel(orgPath, ExcelOrg.class, 0, 2);
        return list;
    }
}
